package com.zhengxiang.onlinexamination.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhengxiang.onlinexamination.base.BaseEntity;
import lombok.Data;

import java.util.Date;
import java.io.Serializable;
import java.util.List;

/**
 * 试卷(PublicExamPaper)实体类
 *
 * @author
 * @since 2023-03-13 11:50:36
 */
@Data
@TableName("exam_paper")
public class ExamPaper extends BaseEntity implements Serializable {
    private static final long serialVersionUID = -97459761238323504L;

    @TableId(type = IdType.AUTO)
    private Integer examPaperId;
    /**
     * 卷名
     */
    private String paperName;

    /**
     * 试卷编号
     */
    private String paperNo;
    /**
     * 部门id
     */
    private Integer deptId;
    /**
     * 总题数
     */
    private Integer questionNum;
    /**
     * 试卷总时长
     */
    private Integer examTotalSecond;
    /**
     * 总分数
     */
    private Integer paperScore;
    /**
     * 单选题分数
     */
    private Integer singleQuScore;
    /**
     * 多选题分数
     */
    private Integer multipleQuScore;
    /**
     * 判断题分数
     */
    private Integer judgmentQuScore;
    /**
     * 简答题分数
     */
    private Integer shortQuScore;
    /**
     * 及格分
     */
    private Integer passMark;
    /**
     * 试卷备注
     */
    private String paperMark;
    /**
     * 开始日期
     */
    private Date examStartTime;
    /**
     * 截止日期
     */
    private Date examEndTime;
    /**
     * 0公开  1受限
     */
    private Integer isPublic;

    /**
     * -1作废
     */
    private Integer examState;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;
    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date updateTime;

    /**
     * 试卷题目关联表
     */
    @TableField(exist = false)
    private List<PaperQu> paperQus;



}

